      <header class="main-header">
          <!-- Logo -->
        <a href="<?php echo 'http://'.$_SERVER['SERVER_NAME'].U('/Index'); ?>" class="logo">
          <!-- mini logo for sidebar mini 50x50 pixels -->
          <span class="logo-mini"><b>P</b>HG</span>
          <!-- logo for regular state and mobile devices -->
          <span class="logo-lg"><b>Phalanx</b>Holding</span>
        </a>
        <!-- Header Navbar: style can be found in header.less -->
        <nav class="navbar navbar-static-top" role="navigation">
          <!-- Sidebar toggle button-->
          <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
          </a>
          <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">
                <?php if($clear_cache_btn): ?>
                <li class="list-langs"><a href="javascript:;" title="{$Think.lang.Update}" id="clear_cache_btn"><i class="fa fa-refresh"></i></a></li>
                <?php endif; ?>
                <li class="dropdown list-langs" style="position: relative">
                    <a href="<?php echo U('/Link/link'); ?>"  style="padding: 9px;">
                        <img src="__PUBLIC__/img/favs-icon.png" style="max-width: 32px" title="{$Think.lang.Common Link}"/>
                        <span class="hidden-xs hidden-sm">{$Think.lang.Common Link}</span>
                    </a>
                </li>

                <li class="dropdown list-langs">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    <?php
                        $langSet = cookie('think_language');
                        if (strtolower($langSet) == 'zh-cn') {
                    ?>
                        <div class="flag flags-china pull-left"></div>&nbsp;<span class="hidden-xs">中文</span>
                    <?php
                        } else {
                   ?>
                        <div class="flag flags-american pull-left"></div>&nbsp;<span class="hidden-xs">English</span>
                   <?php
                        }
                    ?>
                    </a>
                    <ul class="dropdown-menu langs ">
                        <li ><a href="?l=zh-cn" class="list-langs clearfix"><div class="flag flags-china col-xs-6 col-md-6"></div><span class=" col-xs-6 col-md-6 text-black">中文</span></a> </li>
                        <li ><a href="?l=en-us" class="list-langs clearfix"><div class="flag flags-american col-xs-6 col-md-6"></div><span class="col-xs-6 col-md-6 text-black" >English</span></a></li>
                    </ul>
                </li>
              <!-- User Account: style can be found in dropdown.less -->
              <?php  $avatar == ''?$avatar = '__PUBLIC__/dist/img/avatar5.png':$avatar; ?>
              <li class="dropdown user user-menu">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                  <img src="{$avatar}" class="user-image" alt="User Image"/>
                  <span class="hidden-xs"><?php echo getUserName(); ?></span>
                </a>
                <ul class="dropdown-menu">
                  <!-- User image -->
                  <li class="user-header">
                    <img src="{$avatar}" class="img-circle" alt="User Image" />
                    <p>
                      <?php echo getUserName(); ?>
                    </p>
                  </li>
                  <li class="user-footer">
                    <div class="pull-left">
                      <a href="<?php echo U('/Index/editProfile'); ?>" class="btn btn-default btn-flat">{$Think.lang.Profile}</a>
                        <!-- Profile-->
                    </div>
                    <div class="pull-right">
                      <a href="<?php echo U('/Public/logout'); ?>" class="btn btn-default btn-flat">{$Think.lang.Sign out}</a>
                    </div>
                  </li>
                </ul>
              </li>
              <!-- Control Sidebar Toggle Button -->
              <!--<li>-->
                <!--<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>-->
              <!--</li>-->
            </ul>
          </div>
        </nav>
      </header>